[XEND] Hide other_config from console and vfb SXP to prevent string
authorAlastair Tse <atse@xensource.com>
Wed, 31 Jan 2007 15:02:20 +0000 (15:02 +0000)
committerAlastair Tse <atse@xensource.com>
Wed, 31 Jan 2007 15:02:20 +0000 (15:02 +0000)
representation of dict to appear in SXP.

Signed-off-by: Alastair Tse <atse@xensource.com>
tools/python/xen/xend/XendConfig.py

index f17a5a229564d2e6cc5565656ae3ba9ec41d52a2..a3c5398b49080e837c1a015be063e1af34b3ac70 100644 (file)
@@ -1223,7 +1223,12 @@ class XendConfig(dict):
                                   "configuration dictionary.")
             
         sxpr.append(dev_type)
-        config = [(opt, val) for opt, val in dev_info.items()]
+        if dev_type in ('console', 'vfb'):
+            config = [(opt, val) for opt, val in dev_info.items()
+                      if opt != 'other_config']
+        else:
+            config = [(opt, val) for opt, val in dev_info.items()]
+            
         sxpr += config
 
         return sxpr